package com.jiukuaidao.zhulin.module.order.contract;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.data.TaskDataSource;
import com.jiukuaidao.zhulin.entity.ApiOrderList;

import java.util.List;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/3
 * Description :
 */
public interface OrderListContract {
    int REFRESH = 1;
    int LOADMORE = 2;

    interface Presenter extends IBasePresenter {
        void loadData();

    }

    interface View extends IBaseView<Presenter> {
        int getIndex();

        String getStatus();

        void orderList(List<ApiOrderList.OrderList> orderList);

        void toast(String msg);

        int refreshOrLoad();

    }

    interface Model extends TaskDataSource {

        List geOrderList();

        void setOrderList(List list);
    }
}
